package com.sc1.pojo;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class HUser {
    private Integer id;
    private String username;
    private String password;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createtime;
    private Integer did;
    private Huserinfo info;
    private Hdept dept;


    public HUser() {
    }

    public HUser(Integer id, String username, String password, Date createtime, Integer did, Hdept dept, Huserinfo info) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.createtime = createtime;
        this.did = did;
        this.dept = dept;
        this.info = info;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Integer getDid() {
        return did;
    }

    public void setDid(Integer did) {
        this.did = did;
    }

    public Hdept getdept() {return dept;}

    public void setdept(Hdept dept) {this.dept = dept;}

    public Huserinfo getinfo() {return info;}

    public void setinfo(Huserinfo info) {this.info = info;
    }
}
